<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title data-th-text="#{application.name}">AdminLTE 2 | Registration Page</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.6 -->
  <link rel="stylesheet" href="../static/bootstrap/css/bootstrap.min.css" data-th-href="@{bootstrap/css/bootstrap.min.css}">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="../static/plugins/font-awesome/4.5.0/css/font-awesome.min.css" data-th-href="@{plugins/font-awesome/4.5.0/css/font-awesome.min.css}">
  <!-- Ionicons -->
  <link rel="stylesheet" href="../static/plugins/ionicons/2.0.1/css/ionicons.min.css" data-th-href="@{plugins/ionicons/2.0.1/css/ionicons.min.css}">
  <!-- Theme style -->
  <link rel="stylesheet" href="../static/styles/css/AdminLTE.min.css" data-th-href="@{styles/css/AdminLTE.min.css}">
  <!-- iCheck -->
  <link rel="stylesheet" href="../static/plugins/iCheck/square/blue.css" data-th-href="@{plugins/iCheck/square/blue.css}">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="../static/plugins/html5shiv/3.7.3/html5shiv.min.js" data-th-href="@{plugins/html5shiv/3.7.3/html5shiv.min.js}"></script>
  <script src="../static/plugins/respond/1.4.2/respond.min.js" data-th-href="@{plugins/respond/1.4.2/respond.min.js}"></script>
  <![endif]-->
</head>
<body class="hold-transition register-page">
<div class="register-box">
  <div class="register-logo">
    <a href="../static/index2.html"><b>Virgin</b> CMS</a>
  </div>

  <div class="register-box-body">
    <p class="login-box-msg">Register a new membership</p>
    <form action="" method="post" data-th-object="${userRegisterForm}" data-th-action="${#mvc.url('UR#post').build()}">
      <div class="form-group has-feedback" data-th-classappend="${#fields.hasErrors('fullname')}?'has-error'">
        <label class="control-label" for="fullname" data-th-if="${#fields.hasErrors('fullname')}">
          <i class="fa fa-times-circle-o"></i><span data-th-errors="*{fullname}" data-th-remove="tag"></span></label>
        <input type="text" class="form-control" placeholder="Full name" data-th-field="*{fullname}"/>
        <span class="glyphicon glyphicon-user form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback" data-th-classappend="${#fields.hasErrors('username')}?'has-error'">
        <label class="control-label" for="username" data-th-if="${#fields.hasErrors('username')}">
          <i class="fa fa-times-circle-o"></i><span data-th-errors="*{username}" data-th-remove="tag"></span></label>
        <input type="email" class="form-control" placeholder="Email" data-th-field="*{username}"/>
        <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback" data-th-classappend="${#fields.hasErrors('password')}?'has-error'">
        <label class="control-label" for="password" data-th-if="${#fields.hasErrors('password')}">
          <i class="fa fa-times-circle-o"></i><span data-th-errors="*{password}" data-th-remove="tag"></span></label>
        <input type="password" class="form-control" placeholder="Password" data-th-field="*{password}"/>
        <span class="glyphicon glyphicon-lock form-control-feedback"></span>
      </div>
      <div class="form-group has-feedback" data-th-classappend="${#fields.hasErrors('valid')}?'has-error'">
        <label class="control-label" for="confirmPassword" data-th-if="${#fields.hasErrors('valid')}">
          <i class="fa fa-times-circle-o"></i><span data-th-errors="*{valid}" data-th-remove="tag"></span></label>
        <input type="password" class="form-control" placeholder="Retype password" data-th-field="*{confirmPassword}">
        <span class="glyphicon glyphicon-log-in form-control-feedback"></span>
      </div>
      <div class="row">
        <div class="col-xs-8">
          <div class="checkbox icheck">
            <label>
              <input type="checkbox" data-th-field="*{agree}" value="true"/> I agree to the <a href="#">terms</a>
            </label>
          </div>
        </div>
        <!-- /.col -->
        <div class="col-xs-4">
          <button type="submit" class="btn btn-primary btn-block btn-flat">Register</button>
        </div>
        <!-- /.col -->
      </div>
    </form>

    <div class="social-auth-links text-center">
      <p>- OR -</p>
      <a href="#" class="btn btn-block btn-social btn-facebook btn-flat"><i class="fa fa-facebook"></i> Sign up using
        Facebook</a>
      <a href="#" class="btn btn-block btn-social btn-google btn-flat"><i class="fa fa-google-plus"></i> Sign up using
        Google+</a>
    </div>

    <a href="login.html" class="text-center">I already have a membership</a>
  </div>
  <!-- /.form-box -->
</div>
<!-- /.register-box -->

<!-- jQuery 2.2.3 -->
<script src="../static/plugins/jQuery/jquery-2.2.3.min.js" data-th-src="@{plugins/jQuery/jquery-2.2.3.min.js}"></script>
<!-- Bootstrap 3.3.6 -->
<script src="../static/bootstrap/js/bootstrap.min.js" data-th-src="@{bootstrap/js/bootstrap.min.js}"></script>
<!-- iCheck -->
<script src="../static/plugins/iCheck/icheck.min.js" data-th-src="@{plugins/iCheck/icheck.min.js}"></script>
<script>
  $(function () {
    $('input').iCheck({
      checkboxClass: 'icheckbox_square-blue',
      radioClass: 'iradio_square-blue',
      increaseArea: '20%' // optional
    });
  });
</script>
</body>
</html>
